﻿using HardcoreGame.Common.Abstract;
using HardcoreGame.Common.Systems;
using System;
using Terraria;
using Terraria.Localization;
namespace HardcoreGame.Common.Cores.Seasons
{
    public class Summer : Season
    {
        public override string Name => Language.GetTextValue("Mods.HardcoreGame.Season.Summer");
        public override void ApplySeasonEffect()
        {
            Player player = Main.LocalPlayer;
            bool flag = player.ZoneOverworldHeight && !player.ZoneSnow && !player.wet && !Main.raining;
            player.ManageSpecialBiomeVisuals("HeatWave", flag, default);
            if (EventSystem.activeEvents.Contains(5))
            {
                Main.rainTime = Math.Min(Main.rainTime, 18000);
                Main.maxRaining = 0.85f;
                Main.numClouds = 200;
                Main.windSpeedCurrent = 4f;
            }
        }
    }
}